<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Ads extends CI_Controller {
	
	public function admob() {
		$package_id = $this->input->get('id');
		$type = $this->input->get('t');
		
// 		$ads = array(
// 			'text'=>array('a15155cbc7cf165', 'a151641800616da', 'a151679672912b8', 'a15030854b53ca7', 'a1513010af9afe9', 'a1508059372cce4'),
// 			'comic'=>array('a151cbb056e2518')
// 		);
		
// 		if ($type == 'comic') {
// 			echo json_encode($ads['comic'][0]);
// 		} else {
// 			$i = rand(0, count($ads['text'])-1);
// 			echo json_encode($ads['text'][$i]);
// 		}

		
		$response = array(
			'banner'			=>		"de56abc3bc534388",
			'fullscreen'		=>		"37fc9f7458614177",
			'o_banner'			=>		"05fcb2814512421f",
			"o_intersitial"		=>		"e5311ec9b821476b"
		);
		
		echo json_encode($response);
	}
	
}